﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PublicCommon
{
    public class PublicTree<T>
    {
        /// <summary>
        /// 等级(可以输入主键)
        /// </summary>
        public int level { get; set; }
        /// <summary>
        /// 父键
        /// </summary>
        public int pid { get; set; }
        /// <summary>
        /// 显示的值
        /// </summary>
        public string? label { get; set; }
        /// <summary>
        /// 路由(仅有用在菜单)
        /// </summary>
        public string? route { get; set; }
        /// <summary>
        /// 包含子集
        /// </summary>
        public List<PublicTree<T>> children { get; set; }
    }
}
